package com.ds.admin.console.param;

import com.ds.admin.console.constant.UserStatusEnum;
import com.ds.admin.console.entity.SysUser;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import lombok.Getter;
import lombok.Setter;

/**
 * 用户信息表对象
 *
 * @author fusheng
 * @since 2024-09-10
 */
@Getter
@Setter
@AutoMapper(target = SysUser.class)
public class SysUserParam {

    /**
     * 用户账号
     */
    @NotBlank(message = "用户账号不能为空")
    @Size(max = 50, message = "用户账号长度不能超过50个字符")
    private String userName;

    /**
     * 状态
     */
    @NotNull(message = "状态不能为空")
    private UserStatusEnum status;

}
